package nio;

import java.io.FileNotFoundException;
import java.io.RandomAccessFile;
import java.nio.channels.FileChannel;

public class sdfdsa {
    public static void main(String[] args) throws Exception {

        RandomAccessFile file = new RandomAccessFile("blahblah.txt","rw");
        FileChannel channel = file.getChannel();
        FileChannel truncate = channel.truncate(1);


    }
}
